package com.mairuide.phone.import_phone;

import com.mairuide._frame.base.BaseRepository;
import com.mairuide.phone.PhoneRecord;

import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Auther: zyj
 * @Date: 2018/12/13 17:19
 * @Description:
 */
@Repository
public interface PhoneRecordingRepository extends BaseRepository<PhoneRecord> {

    List<PhoneRecord> findByCasemanageIdAndUuid(String caseId,String uuid);
    
    /**
     * 通过服务号码查询话单信息
     * @param serviceNumber
     * @param casemanageId
     * @param isDelete
     * @return
     */
    List<PhoneRecord> findByServiceNumberAndCasemanageIdAndIsDelete(String serviceNumber,String casemanageId, Integer isDelete);
    
    /**
     * 根据案件编号删除话单信息
     * @param casemanageId
     */
    void deleteByCasemanageId(String casemanageId);
}
